package com.deryun.tyl.bean.mapper;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.deryun.tyl.bean.Platform;

public interface PlatformMapper {
	
	@Update({
		"UPDATE platform p SET "
		+ "p.tecPhone =  #{tecPhone,jdbcType=VARCHAR} ,"
		+ "p.centerPhone =  #{centerPhone,jdbcType=VARCHAR} ,"
		+ "p.oneKey =  #{oneKey,jdbcType=VARCHAR} where id = 1"
	})
	int updatePlatform(Platform platform);
	
	@Select({
		"SELECT * FROM platform where id = 1"
	})
	Platform getPlatform();
}
